PROJECT (Hybrid)

IF(NOT VTK_BINARY_DIR)
FIND_PACKAGE(VTK REQUIRED)
IF(NOT VTK_USE_RENDERING)
  MESSAGE(FATAL_ERROR "Example ${PROJECT_NAME} requires VTK_USE_RENDERING.")
ENDIF(NOT VTK_USE_RENDERING)
INCLUDE(${VTK_USE_FILE})
ENDIF(NOT VTK_BINARY_DIR)

INCLUDE_DIRECTORIES(
  # ImageDataLIC2DDemo and StructuredGridLIC2DDemo include
  # TestImageDataLIC2D.h  and TestStructuredGridLIC2DSlice
  # from the dir below
  ${VTK_SOURCE_DIR}/Hybrid/Testing/Cxx
)

SET(HYBRID_EXAMPLES_SRCS
  ImageDataLIC2DDemo
  StructuredGridLIC2DDemo
  )

IF(APPLE)
  SET(EXECUTABLE_FLAG MACOSX_BUNDLE)
ENDIF(APPLE)

FOREACH(name ${HYBRID_EXAMPLES_SRCS})
  ADD_EXECUTABLE(${name} ${EXECUTABLE_FLAG} ${name}.cxx)
  TARGET_LINK_LIBRARIES(${name} vtkHybrid )
ENDFOREACH(name)
